package com.train.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.train.member.dto.SmsRecordDTO;
import com.train.member.po.SmsRecordPO;
import jakarta.validation.Valid;
import org.springframework.validation.annotation.Validated;

import java.time.LocalDateTime;

/**
* @author baitiaojun
* @description 针对表【sms_record】的数据库操作Service
* @createDate 2025-02-10 01:55:15
*/
@Validated
public interface SmsRecordService extends IService<SmsRecordPO> {

    void saveOne(@Valid SmsRecordDTO smsRecordDTO);


    Long querySmsRecord(@Valid SmsRecordDTO smsRecordDTO);

    void validateSmsSendFrequency(String mobile, String validateCode);

    void editSmsRecord(String mobile, String smsCode, String code, LocalDateTime sendTime);
}
